#include <string.h>
#include <stdlib.h>
#include <stdio.h>

#include "maildir.h"
#include "logging.h"

/*
* This function is to be called once at the beginning
* to set the root path of the maildirs.
*/
void dir_set_path(char* path){

}


/*
* This function checks the given username and password
* against the stored values.
*
* If the username is valid (has a corresponding folder)
* and the given password matches the pass file 
* then the function should return 'true'.
*
* Otherwise it is to return 'false'.
*
* Note 'true' and 'false' are defined in maildir.h
*/
bool check_user(char* username, char* password){
    return true;
}

/*
* Constructs a FilesStruct as described in maildir.h
* for the maildir of the givne user.
*/
FilesStruct* dir_get_list(char* user){
    
    return NULL;
}

/*
* Delete the fiven file from the maildir of the given user.
*/
void delete_mail(char* user, char* filename){

}

/*
* Returns the contents of a given file from a user's maildir.
*
* This function MUST also byte-stuff the termination character 
* as described in the project spec.
*
* This function MUST also append the termination character (`.') and a CRLF pair 
* to the end.
*/
char* get_file(char* user, char* filename){
	return 0;
}

